package com.hospital.hospitalmedicalrecordservice.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hospital.common.dto.MedicalrecordDto;
import com.hospital.hospitalmedicalrecordservice.entity.Medicalrecord;
import com.hospital.hospitalmedicalrecordservice.entity.SeeaboutDto;
import com.hospital.hospitalmedicalrecordservice.mapper.MedicalrecordMapper;
import com.hospital.hospitalmedicalrecordservice.service.IMedicalrecordService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 接诊表 服务实现类
 * </p>
 *
 * @author 韩天雨
 * @since 2020-10-20
 */
@Service
public class MedicalrecordServiceImpl extends ServiceImpl<MedicalrecordMapper, Medicalrecord> implements IMedicalrecordService {

    @Override
    public IPage<Medicalrecord> medicalrecordPageVo(MedicalrecordDto medicalrecordDto, Page page) {


        return baseMapper.medicalrecordPageVo(medicalrecordDto,page);
    }

    @Override
    public List<Medicalrecord> medicalrecordnum(SeeaboutDto seeaboutDto) {
        return baseMapper.medicalrecordnum(seeaboutDto);
    }
}
